<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>查看管理员列表</title>
<link href="resources/styles/cms.css" rel="stylesheet" type="text/css">
<style type="text/css">
body {
	background-image: url(resources/images/tab_shadow.gif);
	background-attachment: fixed;
	background-repeat: repeat-x;
}
</style>
</head>
<body>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="search_box">
<tr><td class="search_box">&nbsp;</td></tr>
</table>

<table width="100%"  border="0" cellpadding="2" cellspacing="1" class="color-tabletrim">
  <tr> 
    <td colspan="8" class="j"><img src="resources/images/file.gif" alt="新建" width="14" height="14" border="0" align="absmiddle" />&nbsp;&nbsp;管理员列表</td>
  </tr>
  <tr > 
    <td width="50" class="e">id</td>
    <td class="e">用户名</td>
    <td class="e">权限</td>
	<td class="e">部门</td>
    <td align="center" class="e">操作</td>
  </tr>
  <{section name=i loop=$out.data}> 
  <tr  onMouseOut="javascript:this.bgColor='#FFFFFF'" bgColor="#f8f8f8"> 
    <td class="c_lick" height="22"><{$out.data[i].user_id}></td>
    <td class="c_lick"><{$out.data[i].user_name}></td>
    <td class="c_lick" >
    	<{if $out.data[i].is_admin eq 1}>
			超级管理员
		<{else}>
   			<{foreach from=$out.data[i].privileges name=j item=v key=f}>
				<div style="font-size:12px;width:100%"><{$v.name}></div>
			<{/foreach}>
		<{/if}>
	</td>
	<td class="c_lick"><{$out.data[i].role_name}></td>
    <td align="center" class="c_lick">
    	<a href="<{$domain}>?act=admin.edit&user_id=<{$out.data[i].user_id}>&page=<{$out.page}>">修改</a>&nbsp;&nbsp;
		<a href="<{$domain}>?act=admin.remove&user_id=<{$out.data[i].user_id}>&page=<{$out.page}>" onClick="return confirm('确认要删除<{$out.data[i].user_name}>用户吗？')">删除</a>
	</td>
  </tr>
  <{/section}> 
</table>
<{$out.pagestring}>
</body>
</html>
